package com.example.my_test_2.service.impl;

import com.example.my_test_2.pojo.Purchase;
import com.example.my_test_2.repos.SalesRepository;
import com.example.my_test_2.service.SalesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SalesServiceImpl implements SalesService {
    @Autowired
    private SalesRepository salesRepository;

    @Override
    public List<Purchase> getPurchasesRecord() {
        return salesRepository.findAllRecord();
    }
}
